package com.gds.wiki.cloud.admin.client.sys.hystrix;

import com.gds.wiki.cloud.admin.client.sys.api.AdminUserApi;
import com.gds.wiki.cloud.admin.client.sys.model.AdminUser;
import com.gds.wiki.cloud.framework.common.dto.ResponseDto;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;


@Component
public class AdminUserApiFallbackFactory implements FallbackFactory<AdminUserApi> {

    public AdminUserApi create(Throwable throwable) {
        return new AdminUserApi() {
            @Override
            public AdminUser getBySelf(AdminUser user) {
                return null;
            }

            public String TestAAA() {
                return null;
            }

            public ResponseDto<AdminUser> insert(AdminUser user) {
                return null;
            }
        };
    }
}

